package com.chance.cc.crawler.development.command.node;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.job.domain.du.DuProductDetailCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.job.domain.du.DuProductFindListCrawlerSchedulerJob;
import org.junit.Test;

/**
 * @author lt
 * @version 1.0
 * @date 2021-04-09 09:52:59
 * @email okprog@sina.com
 */
public class CrawlerNodeCommonScript {
    private static final CrawlerNodeCommand crawlerNodeCommand = new CrawlerNodeCommand("192.168.1.215",9505);

    public static void main(String[] args) {
        HttpPage httpPage = crawlerNodeCommand.killCrawler(DuProductDetailCrawlerSchedulerJob.crawlerScheduler());
        System.out.println("Kill Job ：" + httpPage.getRawText());
    }

    @Test
    public void nodeStatus(){
        HttpPage httpPage = crawlerNodeCommand.nodeStatus();
        System.out.println(httpPage);
    }
}
